package com.nebula.salary.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 分页查询结果返回
 *
 * @author codex
 * @since 2022-02-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PageResult对象", description="分页查询结果返回")
@NoArgsConstructor
@AllArgsConstructor
public class PageResult implements Serializable {
    private static final long serialVersionUID = -2306426602800573850L;
    
    @ApiModelProperty(value = "数据总条数")
    private Long total;
    
    @ApiModelProperty(value = "数据条数")
    private Integer count;
    
    @ApiModelProperty(value = "数据")
    private Object list;
    
    
}
